from django.db import models

# Create your models here.
class FoodCook(models.Model):
    cookNo=models.IntegerField(db_column="cookNo", primary_key=True, null=False,unique=True)  # 菜谱编号
    cookName = models.CharField(db_column="cookName", max_length=100, null=False,unique=True)  # 菜谱名称
    functionDes = models.CharField(db_column="functionDes", max_length=1000) #功能描述
    foods = models.CharField(db_column="foods", max_length=100)# 所需要食材
    cookAddress = models.CharField(db_column="cookAddress", max_length=200) # 菜谱产地
    image = models.CharField(db_column="Image", max_length=400, null=True)


    class Meta:
        managed = True
        db_table="FoodCook"